﻿using Loki.IoC;
using Loki.IoC.Registration;
using Luna.Model.Crm;

namespace Luna.Model
{
    public class CrmServiceInstaller : LokiContextInstaller
    {
        public static IContextInstaller All
        {
            get
            {
                return new CrmServiceInstaller();
            }
        }

        public override void Install(IObjectContext context)
        {
            context.Register(Element.Entity<IEditableEntity, EditableEntity>());
            context.Register(Element.Service<ICrmService, CrmService>());
        }
    }
}